package main

import "fmt"

type new_person struct {
	Age int
	Name string
}

func main() {
	//直接定义一个指针类型，接下来对a操作并不需要*a，直接操作a.Age即可
	a := &new_person{
		Name:"laowang",
		Age:19,
	}
	fmt.Println(a)
	a.Age = 33
	a.Name = "laozhang"
	fmt.Println(a)
}